<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="websql.Query"%>
<%@page import="unit.EscapeUnescape"%>
<%@page import="websql.Var"%>
<%@page import="websql.Conn"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
	request.setCharacterEncoding("UTF-8");
%>
<%
	String sqid = request.getParameter("qid");
	if (!sqid.equals("")) {

		int qid = Integer.parseInt(sqid);
		String towright = " <table id =conn border =1>";
		towright += "<tr><td>脚本名称</td>"
				+ "<td><input type=\"text\" name=\"qname\" value=\""
				+ EscapeUnescape.unescape(Query.get("qname", qid))
				+ "\"></td></tr>"
				+"<tr><td>脚本内容</td>"
				+ "<td><textarea name=\"qsql\" rows=8 cols=60>"
				+ EscapeUnescape.unescape(Query.get("qsql", qid))
				+ "</textarea></td></tr>";
		towright += "</table>";
		out.print(towright);
	}
%>

<input type="submit" value="新增" name="st"></input> <input type="submit"
	value="修改" name="st"></input> <input type="submit"  value="删除" name="st"></input>

</body>
</html>

